package com.example.demo.entity;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

public class Vistor implements Serializable {
    private Integer vid;
    private String vname;
    private String tel;
    private String vmark;
    private Date vtime;
    private String vconsult;

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public String getVname() {
        return vname;
    }

    public void setVname(String vname) {
        this.vname = vname;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getVmark() {
        return vmark;
    }

    public void setVmark(String vmark) {
        this.vmark = vmark;
    }

    public Date getVtime() {
        return vtime;
    }

    public void setVtime(Date vtime) {
        this.vtime = vtime;
    }

    public String getVconsult() {
        return vconsult;
    }

    public void setVconsult(String vconsult) {
        this.vconsult = vconsult;
    }

    public Vistor(Integer vid, String vname, String tel, String vmark, Date vtime, String vconsult) {
        this.vid = vid;
        this.vname = vname;
        this.tel = tel;
        this.vmark = vmark;
        this.vtime = vtime;
        this.vconsult = vconsult;
    }

    public Vistor() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Vistor vistor = (Vistor) o;
        return Objects.equals(vid, vistor.vid) && Objects.equals(vname, vistor.vname) && Objects.equals(tel, vistor.tel) && Objects.equals(vmark, vistor.vmark) && Objects.equals(vtime, vistor.vtime) && Objects.equals(vconsult, vistor.vconsult);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vid, vname, tel, vmark, vtime, vconsult);
    }

    @Override
    public String toString() {
        return "Vistor{" +
                "vid=" + vid +
                ", vname='" + vname + '\'' +
                ", tel='" + tel + '\'' +
                ", vmark='" + vmark + '\'' +
                ", vtime=" + vtime +
                ", vconsult='" + vconsult + '\'' +
                '}';
    }
}
